/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package main.grid;

import javax.swing.JFrame;
import javax.swing.JPanel;
import main.rendering.Panel;

/**
 *
 * @author Fox
 */
public class Screen extends JFrame{
    
    private int width = 32;
    private int height = 32;
    
    public Screen(Panel p){
        
        setTitle("The Legend of Blokeface");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize((width*16)+70, (height*16)+140);
        setLocationRelativeTo(null);
        setVisible(true);
        setResizable(false);
        
        this.add((JPanel) p);
    }
    
}
